﻿namespace Core.Events
{
    /// <summary>
    /// 消息事件处理器接口
    /// </summary>
    /// <typeparam name="TEvent">消息或事件的类型</typeparam>
    public interface IEventHandler<in TEvent> where TEvent : IEvent
    {
        /// <summary>
        /// 处理事件
        /// </summary>
        /// <param name="event">事件</param>
        void Handle(TEvent @event);
    }
}
